﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.DependencyInjection;
using ShoppingOnline.Service;

namespace ShoppingOnline.Configuration
{
    public static class ServiceExtension
    {
        public static IServiceCollection AddServiceProvider(this IServiceCollection services)
        {
            if (services != null)
            {
                services.AddTransient<ServiceDbcontext>();
            }
            return services;
        }
    }
}
